package createDatabase;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import model.ChiTietTacGia_Sach;
import model.ChiTietTacGia_SachID;
import model.DichGia;
import model.Sach;
import model.TacGia;
import model.TheLoai;

import org.hibernate.criterion.Restrictions;

import dao.entity.ChiTietTacGia_SachDAO;
import dao.entity.DichGiaDAO;
import dao.entity.SachDAO;

public class TestWebBanSach {
	public static void main(String[] args) {
		ChiTietTacGia_SachID tacGia_SachID = new ChiTietTacGia_SachID(10);

		ChiTietTacGia_SachDAO tg_sachDAO = new ChiTietTacGia_SachDAO();
		SachDAO sach = new SachDAO();
//		Sach sach = new Sach();
//		sach.setId_Sach(10);
//		List<ChiTietTacGia_Sach> tg_sach = tg_sachDAO
//				.findByCriteria(Restrictions.eq("sach",
//						sach));
//		for (int i = 0; i < tg_sach.size(); i++) {
//			System.out.println(tg_sach.get(0).getTacGia().getTenTacGia());
//		}

	}
}
